<?php
namespace app\admin\model;

use \think\Model as Model;
class Article extends Model{
    protected $pk = 'art_id';
    public function category(){
        
        return $this->hasOne('Category','art_cat_id','cat_id');
        
    }
}
